package util.evaluation;

import java.util.Hashtable;

public class AgeGroupAggregator {


	public boolean years_4_5=false;
	public boolean years_6_7=false;
	public boolean years_8_9=false;
	public boolean years_10_12=false;
	
	//intermediates
	
	
	public boolean years_13_15=false;
	public boolean years_16_19=false;
	public boolean adults_25=false;
	public boolean adults_30=false;
	public boolean adults_40=false;
	public boolean adults_70= false;
	
	
	
	Hashtable<String,Boolean> ages =new Hashtable<String,Boolean>();
	public AgeGroupAggregator(boolean years_4_5, boolean years_6_7,boolean years_8_9, boolean years_10_12, boolean years_13_15, boolean years_16_19, boolean adults_25, boolean adults_30, boolean adults_40, boolean adults_70){
		
		this.years_4_5=years_4_5;
		ages.put("years_4_5", years_4_5);
		this.years_6_7=years_6_7;
		ages.put("years_6_7", years_6_7);
		ages.put("years_8_9", years_8_9);
		this.years_8_9=years_8_9;
		ages.put("years_10_12",years_10_12);
		this.years_10_12= years_10_12;
		ages.put("years_13_15", years_13_15);
		
		
		this.years_13_15= years_13_15;
		ages.put("years_16_19", years_16_19);
		this.years_16_19=years_16_19;
		
		ages.put("adults_25", adults_25);
		this.adults_25= adults_25;
		
		ages.put("adults_30", adults_30);
		this.adults_30= adults_30;
		
		ages.put("adults_40", adults_40);
		this.adults_40= adults_40;
		
		ages.put("adults_70", adults_70);
		this.adults_70= adults_70;
				
	
	}
	
	
	public boolean isAgeValid(String age){
		
		if(ages.containsKey(age)){
			
			if(ages.get(age)) return true;
		}
		
		
		
		return false;
	}
	
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
